import { $get, $post, $put, $del } from '@/utils/request'
const tenantId = localStorage.getItem('tenantId')
// 公告信息列表
export let postNoticePageApi = async (params) => {
  let url = `/$zcms/v1/${tenantId}/announcement/list`
  let data = await $post(url, params)
  return data
}
// 公告信息详情
export let getNoticeDetailApi = async (params, id) => {
  let url = `/$zcms/v1/${tenantId}/announcement/receiveDetail/${id}`
  let data = await $get(url, params)
  return data
}

// 公告信息接收方确定公告已读
export let getNoticeReadlApi = async (params) => {
  let url = `/$zcms/v1/${tenantId}/announcementreceiver/read`
  let data = await $post(url, params)
  return data
}
